﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    /// <summary>
    /// 宿舍
    /// </summary>
    public class EM_Hostel
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }
        /// <summary>
        /// 床位数量
        /// </summary>
        public int Bed { get; set; }
        /// <summary>
        /// 空调状态
        /// </summary>
        public Enum Aircondition { get; set; }
        /// <summary>
        /// 厕所状态
        /// </summary>
        public Enum Toilet { get; set; }
        /// <summary>
        /// 舍长
        /// </summary>
        [StringLength(50)]
        public string? Head { get; set; }
        /// <summary>
        /// 值日生
        /// </summary>
        [StringLength(50)]
        public string? Duty { get; set; }

        /// <summary>
        /// 宿管
        /// </summary>
        public string? Dormitory_Manager { get; set; }

        /// <summary>
        /// 单个宿舍是否满员   4：全满 3：差一个 2：差两个 1：差三个 0：空宿舍
        /// </summary>
        public PersonnelEnum Personnel_Status { get; set; }

        public enum Enum
        {
            好的 = 1,
            报修 = 0
        }

        public enum PersonnelEnum
        {
            全满=4,
            差一个=3,
            差两个=2,
            差三个=1,
            空宿舍=0
        }
    }
}
